package com.atguigu.common.commonEnum;

public enum ExceptionEnum {
    SYS_EXCEPTION(10000, "系统未知异常"),
    VALID_EXCEPTION(10001, "数据校验有问题");

    //定义参数
    Integer code;
    String message;

    //构造
    ExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
